package com.buercorp.wangyu.oop.Demo05;

import java.lang.invoke.VarHandle;

public class Test {
    public static void main(String[] args) {
        // 直接赋值 点
        Student.classRoom = "222";

        Student s1 = new Student();
        s1.name = "xiaoyi";
        s1.age = 18;
        System.out.println(s1.name + "今年" + s1.age + "在" + Student.classRoom + "教室");

        Student s2 = new Student();
        s2.name = "yibai";
        s2.age = 18;
        System.out.println(s2.name + "今年" + s2.age + "在" + Student.classRoom + "教室");
    }
}
